package com.leetcode.LC;

public class LC1688 {
    public int numberOfMatches(int n) {
        int count=0;
        while (n>1){
            count+=n/2;
            n-=n/2;
        }
        return count;
    }
}
